<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<link rel="stylesheet" href="css/position.css" />
		<script type="text/javascript" src="js/jquery.min.js" ></script>
		<script type="text/javascript" src="js/jquery.scrollTo.js" ></script>
		<title>JQuery插件：ScrollTo平滑滚动到页面指定位置</title>
		<script type="text/javascript">
			$(function(){
				$(".a1").click(function(){
					$.scrollTo("#lv3",200);
				})
			});
		</script>
	</head>

	<body>
		<div class="d1">
			<div class="d2">
				<a href="#" class="a1">hahhaahah</a>
			</div>

			<div class="d3">
			</div>
		</div>

		<div id="lv2"></div>
		<div id="lv3"></div>
	</body>

</html>